#if !defined(AFX_CHARTGRIDVIEW_H__4C2A4D18_6CA2_4C45_8884_7666882A93D7__INCLUDED_)
#define AFX_CHARTGRIDVIEW_H__4C2A4D18_6CA2_4C45_8884_7666882A93D7__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

//*******************************************************************************
// COPYRIGHT NOTES
// ---------------
// This is a sample for BCGControlBar Library Professional Edition
// Copyright (C) 1998-2016 BCGSoft Ltd.
// All rights reserved.
//
// This source code can be used, distributed or modified
// only under terms and conditions 
// of the accompanying license agreement.
//*******************************************************************************
//
// ChartGridView.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CChartGridView form view

#ifndef __AFXEXT_H__
#include <afxext.h>
#endif

#include "BCGPChartExampleDoc.h"
#include "BCGPChartExampleView.h"

class CChartGridCtrl : public CBCGPGridCtrl
{
	virtual void SetRowHeight()
	{
		CBCGPGridCtrl::SetRowHeight();

		int nRatio = 3;

		m_nRowHeight *= nRatio;
		m_nLargeRowHeight *= nRatio;
	}
};

class CChartGridView : public CBCGPChartExampleView
{
protected:
	CChartGridView();           // protected constructor used by dynamic creation
	DECLARE_DYNCREATE(CChartGridView)

// Form Data
public:
	//{{AFX_DATA(CChartGridView)
	enum { IDD = IDD_CHART_GRID };
	CBCGPComboBox	m_wndChartType;
	CStatic	m_wndGridLocation;
	int		m_nChartType;
	//}}AFX_DATA

// Attributes
public:
	virtual BOOL IsAnimationAvailable() const
	{
		return FALSE;
	}

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CChartGridView)
	public:
	virtual void OnInitialUpdate();
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

	virtual void SetupLayout();
	virtual void UpdateChartColorTheme(int nTheme, BOOL bIsDarkTheme);

// Implementation
protected:
	virtual ~CChartGridView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

	// Generated message map functions
	//{{AFX_MSG(CChartGridView)
	afx_msg void OnChartType();
	//}}AFX_MSG
	LRESULT OnGridDataChanged (WPARAM wParam, LPARAM lParam);
	afx_msg void OnUpdateUnusedCommand(CCmdUI* pCmdUI);
	DECLARE_MESSAGE_MAP()

	void InitGrid ();

	CChartGridCtrl	m_wndGrid;
};

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_CHARTGRIDVIEW_H__4C2A4D18_6CA2_4C45_8884_7666882A93D7__INCLUDED_)
